﻿using System;
using CosyTrade.Futures;
using CosyTrade.UI;

namespace CosyTrade.ClientForm.Futues
{
    public partial class FinishFuturesOrder : FormBase
    {
        public FinishFuturesOrder()
        {
            InitializeComponent();
        }

        private void bindingSource1_PositionChanged(object sender, EventArgs e)
        {
            if (bindingSource1.Current != null)
            {
                FuturesOrder order = bindingSource1.Current as FuturesOrder;
                if (order != null)
                {
                    bindingSource2.DataSource = order.OrderWares;
                    bindingSource3.DataSource = order.OrderPayInfos;
                    bindingSource4.DataSource = order.DelayPayInfo;
                }
            }
        }
    }
}
